$(document).ready(function(){
	varCurrentURL = location.href;
	varCurrentTitle = document.title;
	$("#history").append("<li><a href='" + varCurrentURL + "'>" + varCurrentTitle + "</li>");
	
	$("a").click(function(){
		$(".section").load("2.html .section p");
		return false;
	});
});

function showAlertBox(clickedItem){
	//$(clickedItem).parent().find("section[role='alertdialog']").css("display", "inline");
	var alertDialog = "<section role='alertdialog' tabindex='-1' aria-labelledby='missingInformation'><header id='missingInformation'><h1>Missing Information</h1></header><p>There are some required fields that are missing. Please review and submit again.</p><input type='button' value='close' onclick='closeAlert(this)' /></section>"
	$("body").append(alertDialog);
}